import VueRouter from "vue-router";
import GamePage from '@/views/gamePage/GamePage.vue'

export default new VueRouter({
    routes:[
        {
            //path表示路由路径
            path: '/',
            redirect: '/GamePage'
        },
        {
            //path表示路由路径
            path: '/GamePage',
            //component表示该路由路径对应的组件，当路径匹配时，该组件就会显示
            component: GamePage
        },
    ],
    mode: 'history'
})